import httpInstance from "@/utils/http";
export const insertCartAPI = ({ skuId, count }) => {
    return httpInstance({
        url: '/member/cart',
        method: 'POST',
        data: {
            skuId,
            count
        }
    })
}
export const findNewCartListAPI = () => {
    return httpInstance({
        url: '/member/cart',
        method: 'GEt',
    })
}
export const deleteCartAPI = (ids) => {
    return httpInstance({
        url: '/member/cart',
        method: 'DELETE',
        data:{
            ids
        }
    })
}
export const mergeCartAPI = (data) => {
    return httpInstance({
        url: '/member/cart/merge',
        method: 'POST',
        data
    })
}